﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.Dtos
{
    /// <summary>
    /// 显示废料的dto
    /// </summary>
    public class ListScrapsDto
    {

        /// <summary>
        /// 生产废料id
        /// </summary>
        public int PWId { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PDocumentNumber { get; set; }

        /// <summary>
        /// 生产废料编号
        /// </summary>
        public string? ProductionWasteNumber { get; set; }

        /// <summary>
        /// 生产废料主题
        /// </summary>
        public string? ProductionWasteTopic { get; set; }
        /// <summary>
        /// 废料日期
        /// </summary>
        public DateTime? ProductionDate { get; set; }
        /// <summary>
        /// 是否入库
        /// </summary>
        public int PIsStorage { get; set; }
        /// <summary>
        /// 制单人员
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PDocumentMakers { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(200)")]//设计长度
        public string? PRemark { get; set; }




        /// <summary>
        /// 生产废料产品关联表Id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]//主键自增
        public int PSPId { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 废料数量
        /// </summary>
        public int PScrapsNumber { get; set; }

        public string? AddName { get; set; }

    }
}
